import { translate as $t } from "../../../language/index"
//自定义好数据格式，去返回数据里获取需要的

//搜索限制: priSearchLimit
export const searchRestrictions = [
    {
        optionCode: 'priSearchLimit',
        optionValue: null,
        name: $t('text.System.l251'),
        loading: false,
        elementType: 2 //0-select,1-input,2-switch
    }
]

//新增房源: communityNameManual,repeatScope,protectDuration
export const addHouseRes = [
    {
        optionCode: 'communityNameManual',
        optionValue: null,
        name: $t('text.System.l252'),
        loading: false,
        elementType: 2 //0-select,1-input,2-switch
    },
    {
        optionCode: 'repeatScope',
        optionValue: null,
        name: $t('text.System.l253'),
        loading: false,
        elementType: 0 //0-select,1-input,2-switch
    },
    {
        optionCode: 'protectDuration',
        optionValue: null,
        name: $t('text.System.l254'),
        loading: false,
        elementType: 1 //0-select,1-input,2-switch
    }
]

//二手房掉盘: priToPub,priToPubDays,pubToRob,pubToRobDays
export const secondHouses = [
    {
        optionCode: 'priToPub',
        optionValue: null,
        name: $t('text.System.l255'),
        loading: false,
        elementType: 2 //0-select,1-input,2-switch
    },
    {
        optionCode: 'priToPubDays',
        optionValue: null,
        name: $t('text.System.l256'),
        loading: false,
        elementType: 1 //0-select,1-input,2-switch
    },
    {
        optionCode: 'pubToRob',
        optionValue: null,
        name: $t('text.System.l257'),
        loading: false,
        elementType: 2 //0-select,1-input,2-switch
    },
    {
        optionCode: 'pubToRobDays',
        optionValue: null,
        name: $t('text.System.l258'),
        loading: false,
        elementType: 1 //0-select,1-input,2-switch
    }
]

//租房掉盘: rentPriToPub,rentPriToPubDays,rentPubToRob,rentPubToRobDays
export const rentalPropertyLoss = [
    {
        optionCode: 'rentPriToPub',
        optionValue: null,
        name: $t('text.System.l259'),
        loading: false,
        elementType: 2 //0-select,1-input,2-switch
    },
    {
        optionCode: 'rentPriToPubDays',
        optionValue: null,
        name: $t('text.System.l260'),
        loading: false,
        elementType: 1 //0-select,1-input,2-switch
    },
    {
        optionCode: 'rentPubToRob',
        optionValue: null,
        name: $t('text.System.l261'),
        loading: false,
        elementType: 2 //0-select,1-input,2-switch
    },
    {
        optionCode: 'rentPubToRobDays',
        optionValue: null,
        name: $t('text.System.l262'),
        loading: false,
        elementType: 1 //0-select,1-input,2-switch
    }
]

export const selectList = [
    {
        name: '公司',
        value: 0
    },
    {
        name: '本大片区',
        value: 1
    },
    {
        name: '本小片区',
        value: 2
    },
    {
        name: '本门店',
        value: 3
    },
    {
        name: '本分组',
        value: 4
    },
    {
        name: '本人',
        value: 5
    }
]